<template>
  <div id="Count">
    <h1>{{count}}</h1>
    <button @click="count++">累加</button >
  </div>
</template>

<script>
export default {
  name: "Count",
  data(){
    return{
      count:0
    }
  }
}
</script>

<style scoped>

#Count{
  height: 300px;
  background-color: yellowgreen;
  font-size: 20px;
}
</style>